/* eslint-disable */
import {crc32} from "crc";
import { useI18n } from "vue-i18n";

export function lang(key: string) {
  const i18n = useI18n();
  let hashKey = `k${crc32(key).toString(16)}`;
  let words = i18n.t(hashKey);
  if (words == hashKey) {
    words = key;
    console.log(key, "-没翻译");
  }
  return words;
}
